package com.xialinrui.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;


/**
 * @author xialinrui
 */
@Data
@AllArgsConstructor
@NoArgsConstructor

public class Desire {
    @TableId
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    private String name;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    private Integer isRedeemed;
    private Integer loveToSpend;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Double moneyToSpend;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Double realMoneySpent;
    private Integer realLoveSpent;
}
